package com.douban.business;

import junit.framework.Assert;
import junit.framework.TestCase;

import com.douban.constants.DoubanMediaTypeConstant;
import com.douban.constants.DoubanSortTypeModeConstant;
import com.douban.constants.DoubanUserActionConstant;

import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.XMLReaderFactory;

public class DoubanFetcherTest extends TestCase  {

	DoubanWorker unitUnderTest;
	public void testCreateURLStringToFetchList(){

		unitUnderTest = new DoubanWorker();
		String expectedS = "http://movie.douban.com/people/andmay/wish?start=0&sort=time&mode=list";
		String s= unitUnderTest.createURLStringToFetchList("andmay", DoubanMediaTypeConstant.MOVIE, DoubanUserActionConstant.WISH, DoubanSortTypeModeConstant.TIME, 0);
		Assert.assertEquals(expectedS, s);
	}	

}
